<?php
class Escopo extends AppModel{
	public $useTable = 'tab_escopo';
	public function buscaEscopoPorId($id_escopo){
		return $this->find('first', array('conditions' => array('Escopo.Id' => $id_escopo)));
	}

	public function listaEscopo(){
		return $this->find('list', array('fields' => array('Escopo.Id', 'Escopo.descricao')));
	}
	
	public function buscaDescricaoPorId($id){
  		$find = $this->find('first', array('conditions' => array('Escopo.Id' => $id)));
		return $find['Escopo']['descricao'];
  	}


}


?>